package com.css.zfzx.fxpg.modules.risk.viewobjects;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * @author leon
 * @date 2020-11-12
 */
@Data
public class FxRiskResultVO implements Serializable, IExcelDataModel, IExcelModel {

    /**
     * 省
     */
    @NotNull(message = "缺失")
    @Excel(name = "省", width = 15)
    private String province;

    /**
     * 市
     */
    @NotNull(message = "缺失")
    @Excel(name = "市", width = 15)
    private String city;

    /**
     * 区
     */
    @NotNull(message = "缺失")
    @Excel(name = "区", width = 15)
    private String area;

    /**
     * 经济
     */
    @NotNull(message = "缺失")
    @Excel(name = "经济", width = 15)
    private BigDecimal economy;
    /**
     * 经济概率
     */
    @NotNull(message = "缺失")
    @Excel(name = "经济概率", width = 15)
    private Double economyProbability;

    /**
     * 受伤人口
     */
    @NotNull(message = "缺失")
    @Excel(name = "受伤人口", width = 15)
    private BigDecimal injuryPopulation;

    /**
     * 受伤人口概率
     */
    @NotNull(message = "缺失")
    @Excel(name = "受伤人口概率", width = 15)
    private Double injuryProbability;

    /**
     * 死亡人口
     */
    @NotNull(message = "缺失")
    @Excel(name = "死亡人口", width = 15)
    private BigDecimal deathPopulation;

    /**
     * 死亡人口概率
     */
    @NotNull(message = "缺失")
    @Excel(name = "死亡人口概率", width = 15)
    private Double deathProbability;

    /**
     * 是否有效
     */
    private String isValid;

    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date updateTime;

    /**
     * 修改人
     */
    private String updateUser;
    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime;
    /**
     * 主键id
     */
    private String id;
    /**
     * 创建人
     */
    private String createUser;
    /**
     * 行政区划组合编码+探槽码
     */
    private String objectCode;

    /**
     * 分区标识
     */
    private String partitionFlag;

    private String provinceName;
    private String cityName;
    private String areaName;

    private Integer rowNum;
    private String errorMsg;
}